package model

import (
	"context"

	"github.com/go-redis/redis/v8"
	"gorm.io/gorm"
)

var (
	DB    *gorm.DB
	Redis *redis.Client
	Ctx   = context.Background()
)

//数据做三方迁移,避免相互依赖
func MoveDB(db *gorm.DB) {
	DB = db
}

//三方迁移Redis
func MoveRedis(client *redis.Client) {
	Redis = client
}
